import request from '@/utils/request'

export default{
    /**
     * 获取课程List信息
     * @param {} page 
     * @param {*} limit 
     * @param {*} courseFront 
     */
    getCoursePage(page,limit,courseFront){
        return request({
            url:`/eduservice/coursefront/pageQeryCourse/${page}/${limit}`,
            method:'post',
            data:courseFront
        })
    },
    /**
     * 获取课程详情信息
     * @param {*} courseId 
     */
    getCouorseInfo(courseId){
        return request({
            url:`/eduservice/coursefront/getFrontCourseInfo/${courseId}`,
            method:'get'
        })
    },
    /**
     * 获取二级菜单
     */
    getSubjectTree(){
        return request({
            url:'/eduservice/edu-subject/findTreeSubject',
            method:'get'
        })
    }


}